package com.ruoyi.statisticalCenter.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum ScOutPortEnum
{
    iwWeight("iwWeight", "包仓内重量"),
    iwStopLossWeight("iwStopLossWeight", "止损重量"),
    dailyAssessmentWeight("dailyAssessmentWeight", "日考核重量"),
    iwDifference("iwDifference", "重量差值"),
    iwFee("iwFee", "包仓内费用"),
    iwParcelCount("iwParcelCount", "包仓内票数"),
    iwAverageWeight("iwAverageWeight", "均重"),
    iwAssessmentAverageWeight("iwAssessmentAverageWeight", "考核均重"),
    iwPerParcelFee("iwPerParcelFee", "单票费用"),
    iwPerKgFee("iwPerKgFee", "单公斤费用"),

    owWeight("owWeight", "包仓外重量"),
    owFee("owFee", "包仓外费用"),
    owParcelCount("owParcelCount", "包仓外票数"),
    owPerParcelFee("owPerParcelFee", "单票费用"),
    owPerKgFee("owPerKgFee", "单公斤费用"),


    overSixParcelCount("overSixParcelCount", "票数"),
    overSixWeight("overSixWeight", "重量"),
    overSixAmount("overSixAmount", "金额"),
    overSixPerParcelFee("overSixPerParcelFee", "单票费用"),
    overSixPerKgFee("overSixPerKgFee", "单公斤费用"),
    overSixProportion("overSixProportion", "占比"),


    remoteAreaParcelCount("remoteAreaParcelCount", "票数"),
    remoteAreaWeight("remoteAreaWeight", "重量"),
    remoteAreaAmount("remoteAreaAmount", "金额"),
    remoteAreaPerParcelFee("remoteAreaPerParcelFee", "单票费用"),
    remoteAreaPerKgFee("remoteAreaPerKgFee", "单公斤费用"),
    remoteAreaProportion("remoteAreaProportion", "占比"),


    lnParcelCount("lnParcelCount", "票数"),
    lnWeight("lnWeight", "重量"),
    lnAmount("lnAmount", "金额"),
    lnPerParcelFee("lnPerParcelFee", "单票费用"),
    lnPerKgFee("lnPerKgFee", "单公斤费用"),
    lnProportion("lnProportion", "占比");

    private final String code;
    private final String info;

    ScOutPortEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (ScOutPortEnum value : ScOutPortEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
